package com.bookmall.entity;

import java.time.LocalDateTime;

public class Index {
	private int indexId;        // 主页主键
	private int indextypeId;    // 主页类型外建
	private int bookId;         // 图书外建
	private int rank;           // 排序
	private LocalDateTime createTime;  //创建时间
	private LocalDateTime modifyTime;  //修改时间
	private boolean deleteflag;        // 删除标记
	
	public Index() {
		super();
	}

	public Index(int indexId, int indextypeId, int bookId, int rank, LocalDateTime createTime, LocalDateTime modifyTime,
			boolean deleteflag) {
		super();
		this.indexId = indexId;
		this.indextypeId = indextypeId;
		this.bookId = bookId;
		this.rank = rank;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
		this.deleteflag = deleteflag;
	}

	public int getIndexId() {
		return indexId;
	}

	public void setIndexId(int indexId) {
		this.indexId = indexId;
	}

	public int getIndextypeId() {
		return indextypeId;
	}

	public void setIndextypeId(int indextypeId) {
		this.indextypeId = indextypeId;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public int getRank() {
		return rank;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public boolean isDeleteflag() {
		return deleteflag;
	}

	public void setDeleteflag(boolean deleteflag) {
		this.deleteflag = deleteflag;
	}

	@Override
	public String toString() {
		return "Index [indexId=" + indexId + ", indextypeId=" + indextypeId + ", bookId=" + bookId + ", rank=" + rank
				+ ", createTime=" + createTime + ", modifyTime=" + modifyTime + ", deleteflag=" + deleteflag + "]";
	}
	
}
